package com.xiaoyu.a;

/**
 * Comments：
 * Author：yuxin
 * Create Date：2017-06-22
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
/**
 *
 * ClassName: Coord
 *
 * @Description: 坐标
 * @author kesar
 */
public class Coord
{

    public int x;
    public int y;

    public Coord(int x, int y)
    {
        this.x = x;
        this.y = y;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (obj == null) return false;
        if (obj instanceof Coord)
        {
            Coord c = (Coord) obj;
            return x == c.x && y == c.y;
        }
        return false;
    }
}